package de.tsajar.es.inventory;

import com.simsilica.es.EntityData;
import com.simsilica.es.EntityId;
import com.simsilica.es.EntitySet;
import com.simsilica.es.Filters;

/**
 *
 * @author Eike Foede
 */
public class InventoryHelper {

    public static EntitySet getInventoryFromEntity(EntityId entity, EntityData ed, Class... types) {
	return ed.getEntities(Filters.fieldEquals(IsInInventoryComponent.class, "inventoryEntity", entity), types);
    }
}
